<?php
$this->pageTitle = 'Edit ' . $model->name . ' - ' . Yii::app()->name;
$this->sectionTitle = 'Edit ' . $model->name;
?>

<?php if (Yii::app()->user->hasFlash('update-notebook-success')): ?>
<div class="message success"><?php echo Yii::app()->user->getFlash('update-notebook-success'); ?></div>
<?php
 else:
    echo $this->renderPartial('_form', array('model' => $model));
endif;
?>